<include file="../header" />
<body class="J_scroll_fixed">
<script>

    $(document).ready(function() {



    });

</script>

<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('finishedProduct/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            品名：<input type="text" name="name-like" value="{$name}" /><button class="btn btn-primary">搜索</button>
            <a class="btn" href="{:U('finishedProduct/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('finishedProduct/index')}">产品信息</a></li>
        <li><a href="{:U('finishedProduct/add')}">添加产品</a></li>
    </ul>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>图片</th>
            <th>品名</th>
            <th>编码、供应商</th>
            <th>品号</th>
            <th>分类</th>
            <th>定价、规格</th>
            <th>性能</th>
            <th>适应症</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td style="width:28px;"><img src="{$vo.image_url}" /></td>
                <td>{$vo.name}</td>
                <td>{$vo.code}<br/>[{$vo.supplier}]</td>
                <td style="width:70px;">{$vo.number}</td>
                <td style="width:60px;">{$vo.class_name}</td>
                <td style="min-width:90px;">{$vo.price}元 / {$vo.unit}<br/>[{$vo.size}]</td>
                <td>{$vo.function}</td>
                <td>{$vo.indication}</td>
                <td style="width:30px;">
                    <a href='{:U("finishedProduct/edit",array("id"=>$vo["finished_product_id"]))}'>修改</a>
                    <a class="J_ajax_del" href='{:U("finishedProduct/remove",array("id"=>$vo["finished_product_id"]))}'>删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>